package com.wswy.wzcx.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * 此Toolbar不处理任何事件
 * Created by zl on 2017/12/20.
 */

public class EmptyToolBar extends Toolbar {

  public EmptyToolBar(Context context) {
    super(context);
  }

  public EmptyToolBar(Context context,
      @Nullable AttributeSet attrs) {
    super(context, attrs);
  }

  public EmptyToolBar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
    super(context, attrs, defStyleAttr);
  }

  @Override
  public boolean onTouchEvent(MotionEvent ev) {
    return false;
  }
}
